package com.woniu.mapper;

import com.woniu.domain.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author 16289
* @description 针对表【account】的数据库操作Mapper
* @createDate 2022-08-19 19:21:40
* @Entity domain.Account
*/

public interface AccountMapper {
    List<Account> findAll();

    void addAccount(Account account);

    void removeAccountById(@Param("id") int id);

    void updateAccount(Account account);

    List<Account> findByName(@Param("username") String username);

    List<Account> findByIDs(@Param("ids") Integer[] ids);

    void addOneForMap(Map<String, Object> userinfo);
}
